SERVER_CONFIG_COLUMN_NAME_LIST = ['app_host_cpu_core', 'app_host_mem_total', 'app_host_disk_total',
                                  'db_host_cpu_core', 'db_host_mem_total', 'db_host_disk_total',
                                  'dns_host_cpu_core', 'dns_host_mem_total', 'dns_host_disk_total',]
SERVER_USAGE_COLUMN_NAME_LIST = ['app_host_cpu', 'app_host_mem', 'app_host_disk',
                                 'db_host_cpu', 'db_host_mem', 'db_host_disk',
                                 'dns_host_cpu', 'dns_host_mem', 'dns_host_disk']

APP_CAPACITY_HTTP_MODEL_URL_INPUT_COLUMN_NAME_LIST = ['URL']
APP_CAPACITY_HTTP_MODEL_LOG_INPUT_COLUMN_NAME_LIST = SERVER_CONFIG_COLUMN_NAME_LIST
APP_CAPACITY_HTTP_MODEL_OTHER_INPUT_COLUMN_NAME_LIST = ['request_per_second']
APP_CAPACITY_HTTP_MODEL_OUTPUT_COLUMN_NAME_LIST = ['HTTP_RESPONSE(Avg)', 'QPS', 'PAGELOAD(Avg)']

APP_CAPACITY_SQL_MODEL_URL_INPUT_COLUMN_NAME_LIST = ['URL']
APP_CAPACITY_SQL_MODEL_LOG_INPUT_COLUMN_NAME_LIST = SERVER_CONFIG_COLUMN_NAME_LIST
APP_CAPACITY_SQL_MODEL_OTHER_INPUT_COLUMN_NAME_LIST = ['request_per_second']
APP_CAPACITY_SQL_MODEL_OUTPUT_COLUMN_NAME_LIST = ['SQL_RESPONSE']

APP_CAPACITY_REDIS_MODEL_URL_INPUT_COLUMN_NAME_LIST = ['URL']
APP_CAPACITY_REDIS_MODEL_LOG_INPUT_COLUMN_NAME_LIST = SERVER_CONFIG_COLUMN_NAME_LIST
APP_CAPACITY_REDIS_MODEL_OTHER_INPUT_COLUMN_NAME_LIST = ['request_per_second']
APP_CAPACITY_REDIS_MODEL_OUTPUT_COLUMN_NAME_LIST = ['REDIS_RESPONSE']

APP_CAPACITY_DNS_MODEL_URL_INPUT_COLUMN_NAME_LIST = ['URL']
APP_CAPACITY_DNS_MODEL_LOG_INPUT_COLUMN_NAME_LIST = SERVER_CONFIG_COLUMN_NAME_LIST
APP_CAPACITY_DNS_MODEL_OTHER_INPUT_COLUMN_NAME_LIST = ['request_per_second']
APP_CAPACITY_DNS_MODEL_OUTPUT_COLUMN_NAME_LIST = ['DNS_RESPONSE']

SERVER_CAPACITY_HTTP_MODEL_URL_INPUT_COLUMN_NAME_LIST = ['URL']
SERVER_CAPACITY_HTTP_MODEL_LOG_INPUT_COLUMN_NAME_LIST = []
SERVER_CAPACITY_HTTP_MODEL_OTHER_INPUT_COLUMN_NAME_LIST = ['request_per_second', 'HTTP_RESPONSE(Avg)', 'Success_rate']
SERVER_CAPACITY_HTTP_MODEL_OUTPUT_COLUMN_NAME_LIST = SERVER_CONFIG_COLUMN_NAME_LIST

SERVER_CAPACITY_SQL_MODEL_URL_INPUT_COLUMN_NAME_LIST = ['URL']
SERVER_CAPACITY_SQL_MODEL_LOG_INPUT_COLUMN_NAME_LIST = []
SERVER_CAPACITY_SQL_MODEL_OTHER_INPUT_COLUMN_NAME_LIST = ['request_per_second', 'SQL_RESPONSE', 'Success_rate']
SERVER_CAPACITY_SQL_MODEL_OUTPUT_COLUMN_NAME_LIST = SERVER_CONFIG_COLUMN_NAME_LIST

SERVER_CAPACITY_REDIS_MODEL_URL_INPUT_COLUMN_NAME_LIST = ['URL']
SERVER_CAPACITY_REDIS_MODEL_LOG_INPUT_COLUMN_NAME_LIST = []
SERVER_CAPACITY_REDIS_MODEL_OTHER_INPUT_COLUMN_NAME_LIST = ['request_per_second', 'REDIS_RESPONSE', 'Success_rate']
SERVER_CAPACITY_REDIS_MODEL_OUTPUT_COLUMN_NAME_LIST = SERVER_CONFIG_COLUMN_NAME_LIST

SERVER_CAPACITY_DNS_MODEL_URL_INPUT_COLUMN_NAME_LIST = ['URL']
SERVER_CAPACITY_DNS_MODEL_LOG_INPUT_COLUMN_NAME_LIST = []
SERVER_CAPACITY_DNS_MODEL_OTHER_INPUT_COLUMN_NAME_LIST = ['request_per_second', 'DNS_RESPONSE', 'Success_rate']
SERVER_CAPACITY_DNS_MODEL_OUTPUT_COLUMN_NAME_LIST = SERVER_CONFIG_COLUMN_NAME_LIST

SERVER_CAPACITY_QPS_MODEL_URL_INPUT_COLUMN_NAME_LIST = ['URL']
SERVER_CAPACITY_QPS_MODEL_LOG_INPUT_COLUMN_NAME_LIST = []
SERVER_CAPACITY_QPS_MODEL_OTHER_INPUT_COLUMN_NAME_LIST = ['request_per_second', 'QPS']
SERVER_CAPACITY_QPS_MODEL_OUTPUT_COLUMN_NAME_LIST = SERVER_CONFIG_COLUMN_NAME_LIST

MODEL_DATA_SCHEMA_FILTER_PROTOCOL_COLUMN_NAME = 'L7_PROTOCOL'
MODEL_DATA_SCHEMA_COLUMN_NAME_SET = {MODEL_DATA_SCHEMA_FILTER_PROTOCOL_COLUMN_NAME}
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CONFIG_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_USAGE_COLUMN_NAME_LIST)

# 1
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_HTTP_MODEL_URL_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_HTTP_MODEL_LOG_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_HTTP_MODEL_OTHER_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_HTTP_MODEL_OUTPUT_COLUMN_NAME_LIST)

# 2
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_SQL_MODEL_URL_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_SQL_MODEL_LOG_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_SQL_MODEL_OTHER_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_SQL_MODEL_OUTPUT_COLUMN_NAME_LIST)

# 3
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_REDIS_MODEL_URL_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_REDIS_MODEL_LOG_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_REDIS_MODEL_OTHER_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_REDIS_MODEL_OUTPUT_COLUMN_NAME_LIST)

# 4
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_DNS_MODEL_URL_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_DNS_MODEL_LOG_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_DNS_MODEL_OTHER_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(APP_CAPACITY_DNS_MODEL_OUTPUT_COLUMN_NAME_LIST)

# 5
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_HTTP_MODEL_URL_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_HTTP_MODEL_LOG_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_HTTP_MODEL_OTHER_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_HTTP_MODEL_OUTPUT_COLUMN_NAME_LIST)

# 6
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_SQL_MODEL_URL_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_SQL_MODEL_LOG_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_SQL_MODEL_OTHER_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_SQL_MODEL_OUTPUT_COLUMN_NAME_LIST)

# 7
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_REDIS_MODEL_URL_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_REDIS_MODEL_LOG_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_REDIS_MODEL_OTHER_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_REDIS_MODEL_OUTPUT_COLUMN_NAME_LIST)

# 8
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_DNS_MODEL_URL_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_DNS_MODEL_LOG_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_DNS_MODEL_OTHER_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_DNS_MODEL_OUTPUT_COLUMN_NAME_LIST)

# 9
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_QPS_MODEL_URL_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_QPS_MODEL_LOG_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_QPS_MODEL_OTHER_INPUT_COLUMN_NAME_LIST)
MODEL_DATA_SCHEMA_COLUMN_NAME_SET.update(SERVER_CAPACITY_QPS_MODEL_OUTPUT_COLUMN_NAME_LIST)
